<template>
    <view
        @tap="__e"
        @touchmove.stop.prevent="__e"
        class="mask data-v-2e8221dc"
        :data-event-opts="[
            ['tap', [['cancel', ['$event']]]],
            ['touchmove', [['', ['$event']]]]
        ]"
    >
        <view @tap.stop.prevent="__e" class="mask-content data-v-2e8221dc" :data-event-opts="[['tap', [['', ['$event']]]]]">
            <text @tap="__e" class="new-iconfont icon-close close-btn data-v-2e8221dc" :data-event-opts="[['tap', [['cancel', ['$event']]]]]"></text>
            <view class="title data-v-2e8221dc">为了购物方便，需要授权您的手机！</view>
            <view class="button-2c data-v-2e8221dc">
                <button
                    @getphonenumber="__e"
                    class="buttons submit data-v-2e8221dc"
                    :data-event-opts="[['getphonenumber', [['getPhoneNumber', ['$event']]]]]"
                    openType="getPhoneNumber"
                >
                    <text class="data-v-2e8221dc">点击授权</text>
                </button>
            </view>
        </view>
    </view>
</template>

<script>
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['components/GetPhonePopup/GetPhonePopupForWechat'],
    {
        '2d43': function (e, n, t) {
            'use strict';

            t.r(n);
            var o = t('33a1');
            var c = t.n(o);
            for (var a in o) {
                if (['default'].indexOf(a) < 0) {
                    (function (e) {
                        t.d(n, e, function () {
                            return o[e];
                        });
                    })(a);
                }
            }
            n.default = c.a;
        },
        '33a1': function (e, n, t) {
            'use strict';

            (function (e) {
                Object.defineProperty(n, '__esModule', {
                    value: true
                });
                n.default = void 0;
                var t = {
                    components: {},
                    data: function () {
                        return {
                            code: ''
                        };
                    },
                    props: {},
                    computed: {},
                    watch: {},
                    onLoad: function (e) {},
                    created: function () {
                        var that = this;
                        e.login({
                            success: function (e) {
                                that.code = e.code;
                            },
                            fail: function (e) {}
                        });
                    },
                    methods: {
                        cancel: function () {
                            this.$emit('cancel');
                        },
                        getPhoneNumber: function (e) {
                            if (e.detail.encryptedData) {
                                this.$emit('success', {
                                    phone_encrypt_data: e.detail.encryptedData,
                                    phone_iv: e.detail.iv,
                                    phone_code: this.code
                                });
                            }
                        }
                    },
                    onPageScroll: function (e) {}
                };
                n.default = t;
            }.call(this, t('543d').default));
        },
        5756: function (e, n, t) {
            'use strict';

            var o = t('e582');
            t.n(o).a;
        },
        cb40: function (e, n, t) {
            'use strict';

            t.r(n);
            var o = t('cba7');
            var c = t('2d43');
            for (var a in c) {
                if (['default'].indexOf(a) < 0) {
                    (function (e) {
                        t.d(n, e, function () {
                            return c[e];
                        });
                    })(a);
                }
            }
            t('5756');
            var u = t('f0c5');
            var i = Object(u.a)(c.default, o.b, o.c, false, null, '2e8221dc', null, false, o.a, void 0);
            n.default = i.exports;
        },
        cba7: function (e, n, t) {
            'use strict';

            t.d(n, 'b', function () {
                return o;
            });
            t.d(n, 'c', function () {
                return c;
            });
            t.d(n, 'a', function () {});
            var o = function () {
                this.$createElement;
                this._self._c;
            };
            var c = [];
        },
        e582: function (e, n, t) {}
    }
]);
(global.webpackJsonp = global.webpackJsonp || []).push([
    'components/GetPhonePopup/GetPhonePopupForWechat-create-component',
    {
        'components/GetPhonePopup/GetPhonePopupForWechat-create-component': function (e, n, t) {
            t('543d').createComponent(t('cb40'));
        }
    },
    [['components/GetPhonePopup/GetPhonePopupForWechat-create-component']]
]);
</script>
<style>
@import './GetPhonePopupForWechat.css';
</style>
